/**
 * 
 */
package com.jootu.cc.ccapi;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import springfox.documentation.builders.ApiInfoBuilder;
import springfox.documentation.builders.PathSelectors;
import springfox.documentation.builders.RequestHandlerSelectors;
import springfox.documentation.service.ApiInfo;
import springfox.documentation.spi.DocumentationType;
import springfox.documentation.spring.web.plugins.Docket;

/**
 *
 *@author:antch
 *@date:2017年8月10日
 *@Description:（用户信息处理控制器）
 *
 */

@Configuration
public class SwaggerConfig {
	
	@Bean
	public Docket docket() {
		return new Docket(DocumentationType.SWAGGER_2)
				.apiInfo(apiInfo())
				.select()
				.apis(RequestHandlerSelectors.basePackage("com.jootu.cc.ccapi.web"))
				.paths(PathSelectors.any())
				.build();
	}
	

	public ApiInfo apiInfo() {
		return new ApiInfoBuilder()
				.title("暖通系统APi")
				.description("暖通系统API接口文档")
				.build();
	}
}
